-
Notifications
You must be signed in to change notification settings - Fork 59
fix(plugin-autocapture-browser): do not trigger rage click when text being highlighted #1471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
daniel-graham-amplitude
merged 51 commits into
main
from
AMP-146044-fix-highlightable-text-rage-clicks
Jan 8, 2026
Merged
fix(plugin-autocapture-browser): do not trigger rage click when text being highlighted #1471
daniel-graham-amplitude
merged 51 commits into
main
from
AMP-146044-fix-highlightable-text-rage-clicks
Jan 8, 2026
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected]
This reverts commit b6afc2a.
This reverts commit db34376.
…cript into AMP-146045-rage-click-fix-mobile-scroll-false-positive
- @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected] - @amplitude/[email protected]
3696ef2 to
2f9f9a5
Compare
… of github.com:amplitude/Amplitude-TypeScript into AMP-146044-fix-highlightable-text-rage-clicks
… AMP-146045-rage-click-fix-mobile-scroll-false-positive
… of github.com:amplitude/Amplitude-TypeScript into AMP-146044-fix-highlightable-text-rage-clicks
Base automatically changed from
AMP-146045-rage-click-fix-mobile-scroll-false-positive
to
main
January 5, 2026 22:37
… AMP-146044-fix-highlightable-text-rage-clicks
|
📝 Documentation updates detected! New suggestion: Document rage click text selection behavior |
Mercy811
approved these changes
Jan 5, 2026
Dogfalo
reviewed
Jan 7, 2026
Dogfalo
approved these changes
Jan 8, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Cancel a rage click if there is a text highlight event that happens after a click.
If a user clicks 1 or more times, and then text is highlighted, that suggests that the user's clicks caused the text to be highlighted
Here's a demonstration to show if you highlight text in an input, the first 3 clicks cause the text to be highlighted, which cancels out the rage click. You thus need at least 7 clicks for it to be a rage click (4 clicks after the text is done being highlighted).
Screen.Recording.2026-01-02.at.5.41.11.PM.mov
Checklist
Note
Prevents false rage clicks by introducing text-selection awareness and resetting the rage-click window when selection occurs.
selectionObservable(listening todocument.selectionchange) to detect non-collapsed selections in inputs/textareas and other elementstrackRageClicksto subscribe toselectionObservableandresetClickWindow, returning a composite subscription for proper teardownAllWindowObservablesandObservablesEnumto includeselectionObservableWritten by Cursor Bugbot for commit b4702ab. This will update automatically on new commits. Configure here.